package cn.com.w.docx4j.demo.vo;

import lombok.Data;

/**
 * 单元格地址范围类
 */
@Data
public class CellRangeAddress {
    // 第一行
    private int firstRow;

    // 最后一行
    private int lastRow;

    // 第一列
    private int firstCol;

    // 最后一列
    private int lastCol;

    public CellRangeAddress(int firstRow, int lastRow, int firstCol, int lastCol) {
        this.firstRow = firstRow;
        this.lastRow = lastRow;
        this.firstCol = firstCol;
        this.lastCol = lastCol;
    }


    @Override
    public String toString() {
        return "CellRangeAddress [firstRow=" + firstRow + ", lastRow="
                + lastRow + ", firstCol=" + firstCol + ", lastCol=" + lastCol
                + "]";
    }
}
